package com.tecode.day01.homeword;

public class TestStudent {

	
	public static void main(String[] args) {
		//定义一个学生的对象。
		Student stu1 = new Student();
		
		//给stu1对象的属性赋值
		
		stu1.id =1001;
		stu1.name = "AB";
		stu1.sex ='男';
		stu1.age = 10;
		stu1.address="q1";
		
		stu1.showMessage();
		
		
		//定义一个学生的对象。
		Student stu2 = new Student();
		
		//给stu1对象的属性赋值
		
		stu2.id =1002;
		stu2.name = "AB1";
		stu2.sex ='女';
		stu2.age = 10;
		stu2.address="q2";
		
		stu2.showMessage();
		
	}
}
